//
//  SetGroupCellView.swift
//  OneMeeting
//
//  Created by zhangheng on 2019/8/27.
//  Copyright © 2019 www.zhangheng.com. All rights reserved.
//

import Foundation

class SetGroupCellView: TableRowView {
    
  
    override init(frame frameRect: NSRect) {
        super.init(frame: frameRect)
        setupUI()
    }
    
    required init?(coder decoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    func setupUI() -> () {
        self.addSubview(lineView)
        lineView.snp.makeConstraints { (make) in
            make.width.equalToSuperview().offset(-40)
            make.centerX.equalToSuperview()
            make.height.equalTo(1)
            make.top.equalToSuperview()
        }
        
        self.addSubview(title)
        title.snp.makeConstraints { (make) in
            make.width.equalTo(100)
            make.height.equalTo(20)
            make.top.equalTo(30)
            make.left.equalTo(25)
        }
    }
    
    lazy var title: NSLabel = {
        let tef = NSLabel.label(title: "常规", textColor: NSColor.black, font: NSFont.systemFont(ofSize: 16))
        return tef
    }()
    
    lazy var lineView: NSView = {
        let view = NSView()
        view.wantsLayer = true
        view.layer?.backgroundColor = NSColor.init(white: 240/256, alpha: 1.0).cgColor
        return view
    }()
}
